package cn.edu.fzu.delivery.mapper;

import cn.edu.fzu.delivery.domain.entity.NetWorkDay;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author fangxin
 * @date 2022/11/13
 */
public interface NetWorkDayMapper {

    List<NetWorkDay> list();

    /**
     * 根据2个网点查询
     */
    List<NetWorkDay> listByIdsAndDay(@Param("networkId1") Long networkId1, @Param("networkId2") Long networkId2, @Param("day") Integer day);

    /**
     * 根据1个或0个网点查询
     */
    List<NetWorkDay> listByIdAndDay(@Param("networkId") Long networkId, @Param("day") Integer day);

    Integer add(@Param("networkId1") Long networkId1, @Param("networkId2") Long networkId2, @Param("day") Integer day);

    Integer delete(@Param("id") Long id);

    Integer update(@Param("id") Long id, @Param("networkId1") Long networkId1, @Param("networkId2") Long networkId2, @Param("day") Integer day);

}
